/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.javanile.me.chessengine;

/**
 *
 * @author cicciodarkast
 */
public class Main {

	/**
	 * @param args the command line arguments
	 */
	public static void main(String[] args) {
		
		Engine A = new Engine();				
		Engine B = new Engine();				
		
		Match M = new Match(A,B);		
		while(M.next()) {
			M.doMove(
				M.getWhite().getBest()
			);
			M.doMove(
				M.getBlack().getBest()
			);
		}
		
		M.dump();
		
		/*
		*/
		
		//Engine e = new Engine(Constants.TEST_POSITION_1);	
		//Engine e = new Engine("8/8/8/4N3/8/8/2K5");
		//Engine e = new Engine("8/2p5/3p4/KP5r/1R3p1k/8/4P1P1/8 w - -");				
		//Engine e = new Engine("r3k2r/p1ppqpb1/bn2pnp1/3PN3/1p2P3/2N2Q1p/PPPBBPPP/R3K2R w KQkq -");				
		
		//Engine e = new Engine("r3k2r/8/8/8/8/8/8/R3K2R w KQkq -");				
		//Engine e = new Engine("n1n5/PPPk4/8/8/8/8/4Kppp/5N1N b - -");
		//e.doMove("e1g1");
		//e.doMove("e8c8");
		
		
		
		//e.dump();
		
		//e.doMove("a5a6");
		//e.doMove("c7c5");
		//e.doMove("b5c6");
		//e.doMove("h7h5");
		/*
		e.doMove("e4e5");
		e.doMove("f7f5");
		e.doMove("e5f6");
		e.unMove();
		*/
		
		
		//System.out.println(e.getPerft(1));
		
		
		
		/*
		e.doMove("e2e4");
		e.doMove("e7e5");
		e.doMove("f1b5");
		*/
		//e.dump();
		
		/*
		e.doMove("g1f3");
		e.doMove("d7d5");
		
		e.search(12);
		*/
		
		//e.dump();
		
		//Log.line(""+e.getPieceAt(Square.toInt("d1")));
		
		/*
		e.doMove("e2e4");
		e.doMove("d7d5");
		e.doMove("f1c4");
		e.doMove("d5d4");
		e.doMove("g1f3");
		e.doMove("d4d3");
		e.doMove("c4f7");
		e.getBoard().dump();
		
		Moves ms = e.getMoves();		
		
		ms.dump();
		 **/
		/*
		e.doMove("e4d5");
		e.doMove("c8d7");
		e.unMove();
		 * *
		 */
		//e.dump();
		
		//e.analize();
	}
}
